package com.party.business.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.party.common.annotation.Excel;
import com.party.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.util.List;

/**
 * 考试记录对象 t_ks_record
 *
 * @author ruoyi
 * @date 2024-11-15
 */
@Data
@TableName(value = "t_ks_record")
@EqualsAndHashCode(callSuper = true)
public class TKsRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * "考试Id"
     */
    @NotEmpty(message = "考试Id不能为空")
    @Excel(name = "考试Id")
    private String ksId;


    /**
     * "userId"
     */
    @NotEmpty(message = "userId不能为空")
    @Excel(name = "userId")
    private String userId;
    /**
     * "时间"
     */
    @Excel(name = "时间")
    private Long times;

    /**
     * "分数"
     */
    @Excel(name = "分数")
    private BigDecimal score;

    /**
     * "正确率"
     */
    @Excel(name = "正确率")
    private String rightLv;

    /**
     * "总题数"
     */
    @Excel(name = "总题数")
    private Long totalNum;

    /**
     * "正确数"
     */
    @Excel(name = "正确数")
    private Long rightNum;

    /**
     * "错误数"
     */
    @Excel(name = "错误数")
    private Long errorNum;

    /**
     * "未答数"
     */
    @Excel(name = "未答数")
    private Long wdNum;

    private String delFlag;


    /**
     * "试题集合"
     */
    @TableField(exist = false)
    private List<TKsQuestion> quList;

    /**
     * "答题记录详情"
     */
    @TableField(exist = false)
    private List<TKsRecordDetail> detailList;

      /**
     * "考试名称"
     */
    @TableField(exist = false)
    private String ksName;

        /**
     * "考试信息"
     */
    @TableField(exist = false)
    private TKs ksxx;

    @TableField(exist = false)
    private String username;





}
